import request from '@/utils/request'

// 查询付款管理列表
export function listPayment(query) {
  return request({
    url: '/order/payment/list',
    method: 'get',
    params: query
  })
}

// 查询付款管理详细
export function getPayment(paymentId) {
  return request({
    url: '/order/payment/' + paymentId,
    method: 'get'
  })
}

// 新增付款管理
export function addPayment(data) {
  return request({
    url: '/order/payment',
    method: 'post',
    data: data
  })
}

// 修改付款管理
export function updatePayment(data) {
  return request({
    url: '/order/payment',
    method: 'put',
    data: data
  })
}

// 删除付款管理
export function delPayment(paymentId) {
  return request({
    url: '/order/payment/' + paymentId,
    method: 'delete'
  })
}

// 导出付款管理
export function exportPayment(query) {
  return request({
    url: '/order/payment/export',
    method: 'get',
    params: query
  })
}